package cn.wmx.sqlsession;

import cn.wmx.pojo.Configuration;
import cn.wmx.pojo.MappedStatement;

import java.util.List;

public interface Executor {

    <E> List<E> query(Configuration configuration,
                      MappedStatement mappedStatement,
                      Object... params
    ) throws Exception;

    int executeUpdate(Configuration configuration,
                      MappedStatement mappedStatement,
                      Object... params
    ) throws Exception;

}
